<!DOCTYPE html>
<html lang="zh-CN">
<head>
     <script src="/static/header.js"></script>

</head>

<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
                    aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand loadLink" href="/systemctl/product?list=1&user={{ user }}">nancal</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right">
                <li><a class="btn-group-sm" href="#">{{ user }}</a></li>
                <li><a class="btn-group-sm" href="/login/?close=1">退出</a></li>
            </ul>

        </div>
    </div>
</nav>
<div class="panel panel-default">
{#                <div class="panel-heading"></div>#}
                <div class="panel-body">
                    <!--表格上面的那一行-->
                    <div class="row">
                        <div class="col-md-11">
                        <h3>详细信息</h3>
                        </div><!-- /.col-lg-6 -->

                    </div>
                    <!--表格上面那一行 结束-->
                    <!--表格 开始-->
                    <div class="table-box">
                        <table class="table table-hover">
                            <thead>
                            <tr>
                                <th class="text-center">序号</th>
                                <th class="text-center">服务名</th>
                                <th class="text-center">ip地址</th>
                                <th class="text-center">端口</th>
                                <th class="text-center">用户名</th>
                                <th class="text-center">密码</th>
                                <th class="text-center">token</th>
                                <th class="text-center">创建时间</th>
                                <th class="text-center">备注</th>
                            </tr>
                            </thead>
                            <tbody>
                            {% for i in  ret %}
                            <tr class="text-center">
                                <td>{{ forloop.counter }}</td>
                                <td>{{ i.servername }}</td>
                                <td>{{ i.ip }}</td>
                                <td>{{ i.port }}</td>
                                <td>{{ i.user }}</td>
                                <td>{{ i.pwd }}</td>
                                <td>{{ i.token }}</td>
                                <td>{{ i.create_date }}</td>
                                <td>{{ i.remark }}</td>
                                <td>
                                    <a class="btn btn-info btn-sm loadLink" href="/systemctl/editconf/?id={{ i.id }}&user={{ user }}&list={{ list }}">编辑</a>
                                </td>
                            </tr>
                             {% endfor %}

                            </tbody>
                        </table>
                    </div>


                    <!--分页结束-->
                </div>
            </div>
                        <div class="col-md-1 pull-right">
                            <a class="btn btn-success pull-right loadLink" href="/systemctl/addconf/?user={{ user }}&list={{ list }}">添加</a>
                        </div>
            <!--面板 结束-->
        </div>
    </div>
</div>

<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
    <script src="/static/jquery-3.3.1.js"></script>
     <script src="/static/bootstrap-3.3.7/js/bootstrap.js"></script>
     <script src="/static/loadLink.js"></script>
</body>
</html>
